﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Core
{
    public partial class ExportatedReportsView
    {
        public static IQueryable<ExportatedReportsView> LoadSearchResult(DAL.DataAccessLayer dal, string type)
        {
            DataAccessDataContext db = new DataAccessDataContext();

            return from e in db.ExportatedReportsViews
                   where e.Path == null || !e.Type.Equals(type)
                   select e;
        }
    }
}
